stack: Dispose children before emitting items-changed
authorJulian Sparber <julian@sparber.net>
Mon, 13 Sep 2021 14:29:30 +0000 (16:29 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 31 Oct 2021 21:52:04 +0000 (17:52 -0400)
commit137a62cb944158a25220ef496000946dfc211b45
tree1649b547571b1672a654b89ac5be6822094789c7
parent022b396a06967896c79715fc0b8db00556a37c20
stack: Dispose children before emitting items-changed

This makes sure that the `GListModel` returned by
`gtk_stack_get_pages()` actually has the items removed before
`items-changed` is emitted.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4255
gtk/gtkstack.c